#include "ctreeview.h"

CTreeView::CTreeView(QWidget *parent): QTreeView(parent)
{
    setContextMenuPolicy(Qt::CustomContextMenu);
    setAcceptDrops(true);
    setEditTriggers(QAbstractItemView::NoEditTriggers);
    setDragEnabled(true);
    setDragDropMode(QAbstractItemView::DragDrop);
    setSelectionMode(QAbstractItemView::SingleSelection);
    setAutoExpandDelay(3);
    setSortingEnabled(false);
    setAllColumnsShowFocus(true);
    setHeaderHidden(true);
}
